package com.jy.admin.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.jy.admin.db.dao.CeRepaymentLinkDao;
import com.jy.admin.db.entity.CeRepaymentLinkEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: zxp
* Date: 2022-01-20
* Time: 21:34:15.890
*/

@Repository
public class CeRepaymentLinkDaoImpl extends AbstractBaseMapper<CeRepaymentLinkEntity> implements CeRepaymentLinkDao {

    @Override
    public CeRepaymentLinkEntity getOneByCollectionNo(String collectionNo, int type) {
        Map<String, Object> params = new HashMap<>();
        params.put("collectionNo", collectionNo);
        params.put("type", type);
        return getSqlSession().selectOne(this.getStatement("getOneByCollectionNo"), params);
    }
}